package cn.tedu._05mvcboot03.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@Slf4j
public class UserArticleDTO {
    @ApiModelProperty(value = "文章标题",required = true)
    @NotBlank(message = "标题应为1-20字符")
    @Size(min=1,max = 20)
    private String title;
    @ApiModelProperty(value = "文章内容",required = true)
    @NotBlank(message = "内容为至少10字符-500字符")
    @Size(min=10,max=500)
    private String content;
}
